import { createStore, applyMiddleware, combineReducers } from 'redux';
import { thunk } from 'redux-thunk';

import counterReducer from './reducer/counter';
import personReducer from './reducer/person';

const allReducers = combineReducers({
  count: counterReducer,
  person: personReducer,
});

export default createStore(allReducers, applyMiddleware(thunk));
